QT += widgets

TEMPLATE = lib
DEFINES += QT_DLL
DEFINES += JWTS_LIBRARY
DEFINES += _CRT_SECURE_NO_WARNINGS
DEFINES += WAVE_FORMAT_PCM _RUSSIAN

CONFIG += c++17

DESTDIR = ../LIBS

win32 {
    LIBS += -lWinmm
}

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    AnsiConverter.cpp \
    AutoWaitCursor.cpp \
    BMPFILE.CPP \
    BUFFER.CPP \
    CAPTURE.CPP \
    DB.CPP  \
    DRAWING.CPP  \
    DXUTIL.CPP  \
    ERRORS.CPP  \
    EXTRAOBJ.CPP  \
    FEARRAY.CPP  \
    FILE.CPP  \
    FINDER.CPP  \
    FNTEXCHG.CPP  \
    FileUtils.cpp \
    HOBJECT.CPP  \
    HOOKS.CPP  \
    IODATA.CPP  \
    KSettings.cpp \
    LOG.CPP  \
    MACHINE.CPP  \
    MATRIX.CPP  \
    MDI.CPP  \
    MEMCON.CPP  \
    MMIO.CPP  \
    MessageDispatcher.cpp \
    PALETTE.CPP  \
    PATH.CPP  \
    PROGRAM.CPP  \
    RECT.CPP  \
    SCROLL.CPP  \
    SOUND.CPP  \
    SYMBOLS.CPP  \
    SYMSET.CPP  \
    SYSTFUNC.CPP  \
    SettingsUtils.cpp \
    TimeFunctions.cpp \
    VEARRAY.CPP  \
    VIDEO.CPP  \
    WINDOW.CPP  \
    WINDOWSEVENT.CPP  \
    WMFFILE.CPP \
    MdiChild.cpp

HEADERS += INCLUDE/ARRAY.HPP \
    INCLUDE/AnsiConverter.h \
    INCLUDE/AutoWaitCursor.h \
    INCLUDE/BASECLASS.H \
    INCLUDE/BASETYPES.H \
    INCLUDE/BASEUID.H \
    INCLUDE/BITMAP.HPP \
    INCLUDE/BUFFER.HPP \
    INCLUDE/CAPTURE.HPP \
    INCLUDE/CLOG.H \
    INCLUDE/DB.H \
    INCLUDE/DBJCL.H \
    INCLUDE/DEFCOPRED.H \
    INCLUDE/DRAWING.HPP \
    INCLUDE/DXUTIL.H \
    INCLUDE/FileUtils.h \
    INCLUDE/KSettings.h \
    INCLUDE/MessageDispatcher.h \
    INCLUDE/ParentWindow.h \
    INCLUDE/SettingsUtils.h \
    INCLUDE/errordef.hpp  \
    INCLUDE/ERRORS.HPP \
    INCLUDE/EXPORT.HPP \
    INCLUDE/EXPORTMFT.HPP \
    INCLUDE/EXTRAOBJ.HPP \
    INCLUDE/FILE.HPP \
    INCLUDE/FINDER.HPP \
    INCLUDE/HOBJECT.HPP \
    INCLUDE/HOOKS.HPP \
    INCLUDE/IODATA.HPP \
    INCLUDE/JCLTINFO.H \
    INCLUDE/JPGDXA.HPP \
    INCLUDE/JWTS.HPP \
    INCLUDE/JWTS_DEF.H \
    INCLUDE/JWTS_global.h \
    INCLUDE/JWTSLANG.HPP \
    INCLUDE/LEGACYREPLACER.HPP \
    INCLUDE/LOG.H \
    INCLUDE/MACHINE.HPP \
    INCLUDE/MATRIX.HPP \
    INCLUDE/MDI.HPP \
    INCLUDE/MEMCON.HPP \
    INCLUDE/MENU.HPP \
    INCLUDE/MMIO.HPP \
    INCLUDE/PALETTE.HPP \
    INCLUDE/PATH.HPP \
    INCLUDE/PORTS.HPP \
    INCLUDE/PROGRAM.HPP \
    INCLUDE/RECT.HPP \
    INCLUDE/SCROLL.HPP \
    INCLUDE/SOUND.HPP \
    INCLUDE/SYMBOLS.HPP \
    INCLUDE/SYMSET.HPP \
    INCLUDE/SYSTFUNC.H \
    INCLUDE/TRIG.H \
    INCLUDE/VIDEO.HPP \
    INCLUDE/WINDOW.HPP \
    INCLUDE/WINDOWSEVENT.HPP \
    INCLUDE/WMFFILE.HPP \
    INCLUDE/MdiChild.h \
    INCLUDE/SignalEmitter.h

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target
